#pragma once
#include <unordered_map>
#include "singleton.hpp"
#include <string>
#include "json.hpp"

namespace bz 
{


class container
{
public:
	sigletonclass(container)
public:

	json get_active_status();
	std::string get_license_request_code(int64_t& expire_time);
	std::string regen_license_request_code(int64_t& expire_time);
	int active_license(std::string& active_code, int64_t& expire_time, bool& ip_change);

	bool isActive();

private:
	container();
	~container();
	int active_status_;


};


}